-- GENERATED SPELL FOR [Summoned Succubus] --


function spell0_5677(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5677', 674, 1)
end

function spell1_5677(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_5677', 598, 1)
end

function Sorts_5677(pUnit, Event)
local choix_sorts_5677 = math.random(0, 1)
if choix_sorts_5677 == 0 then
pUnit:RegisterEvent('spell0_5677', 1, 1)
end
if choix_sorts_5677 == 1 then
pUnit:RegisterEvent('spell1_5677', 1, 1)
end
end

function mob5677_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5677', math.random(1500, 3000), 1)
end

function mob5677_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5677_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5677_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5677, 1, 'mob5677_Action')
RegisterUnitEvent(5677, 2, 'mob5677_Leave')
RegisterUnitEvent(5677, 3, 'mob5677_Kill')
RegisterUnitEvent(5677, 4, 'mob5677_Die')
